var app = getApp();
const util = require('../../../utils/util')
    //Page Object
Page({
    data: {
        systemInfo: app.systemInfo,
        pageType: true, //true=图文，false=视频
        list: [
            { 'name': '一起学习python全面进攻python一起学习python全面进攻python', 'datatime': '2019-02-15 12:12:12', 'integral': '20' },
            { 'name': '一起学习python全面进攻python一起学习python全面进攻python', 'datatime': '2019-02-15 12:12:12', 'integral': '20' },
            { 'name': '一起学习python全面进攻python一起学习python全面进攻python', 'datatime': '2019-02-15 12:12:12', 'integral': '20' },
            { 'name': '一起学习python全面进攻python一起学习python全面进攻python', 'datatime': '2019-02-15 12:12:12', 'integral': '20' },
        ]

    },
    getList: function() {
        let _self = this
        let data = {
            openId: app.openId,
            telphone: ''
        }
        util.postRequest('FinanceManage/rest/exchangeRecordList.do', data, function(res) {
            console.log(res)
            _self.setData({
                list: res.recordList
            })
        })
    },
    //options(Object)
    onLoad: function(options) {

    },
    onReady: function() {

    },
    onShow: function() {
        this.getList()
    },
    onHide: function() {

    },
    onUnload: function() {

    },
    onPullDownRefresh: function() {

    },
    onReachBottom: function() {

    },
    onShareAppMessage: function() {

    },
    onPageScroll: function() {

    },
    //item(index,pagePath,text)
    onTabItemTap: function(item) {

    }
});